package Review;

public class Test19 {

	public static void main(String[] args) {

	}
	public static void mirrorTree(BinaryTreeNode root){
		if(root==null){
			return;
		}
		if(root.left==null&&root.right==null){
			return;
		}
		BinaryTreeNode temp = root.left;
		root.left = root.right;
		root.right = temp;
		if(root.left!=null){
			mirrorTree(root.left);
		}
		if(root.right!=null){
			mirrorTree(root.right);
		}
	}  

}
